@extends('front.common.header')

@section('title', '热门职位 - 企业招聘')

@section('header')
@parent
@stop

@section('content')
<link href="{{ asset('/css/company/jobs.css') }}" rel="stylesheet" type="text/css">
<link href="{{ asset('/css/company/comdetails.css') }}" rel="stylesheet" type="text/css">
<script src="{{ asset('/js/company/search.js') }}"></script>
{{-- 主体内容 --}}
<div id="jobs-main-content">
    {{-- 面包屑导航 --}}
    <div id="com-details-menu">
        <ul>
            <li class="first"><a href="/" target="_blank">首页</a></li>
            <li><span>|</span></li>
            <li><a href="{{ url('/company/list?typeid=1') }}" target="_self">企业招聘</a></li>
            <li><span>|</span></li>
            <li class="last">
                <a href="{{ url('/company/list?typeid=1') }}">热门职位&nbsp;<i class="icon-remove c9"></i></a>
            </li>
        </ul>
        <div class="com-lists-search">
             <input type="text"   id="jobs-lists-keyword" name="keyword"   value="{{$comkeyword}}"/>
             <input type="hidden" id="jobs-lists-area"    name="areaid"    value="{{$now_area}}"/>
             <input type="hidden" id="jobs-lists-develop" name="developid" value="{{$now_develop}}"/>
             <input type="hidden" id="jobs-lists-type"    name="typeid"    value="{{$now_type}}"/>
             <input type="hidden" id="jobs-lists-gznx"    name="gznx"      value="{{$now_gznx}}"/>
             <input type="hidden" id="jobs-lists-degree"  name="degree"    value="{{$now_degree}}"/>
             <input type="hidden" id="jobs-lists-gzxz"    name="gzxz"      value="{{$now_gzxz}}"/>
             <input type="hidden" id="jobs-lists-sort"    name="sort"      value="{{$now_sort}}"/>
             <a href="javascript:void(0)" id="jobs-lists-searchbtn"></a>
        </div>
        <script type="text/javascript">JobsSearch();</script>
    </div>
    <div id="com-details-wrap">
        {{-- 左侧内容 --}}
        <div id="com-details-wrap-left" class="fl mr10">
            {{-- 筛选条件 --}}
            <div class='ent-border employ-search clearfix'>
                <div class="search-line" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">公司地点：</li>
                        <li  @if(empty($now_area))class="list-nav"@endif>
                           <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid=0&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">全国</a>
                        </li>
                        @foreach($areas as $key=>$area)
                        @if($key < 9)
                        <li @if($now_area == $area->area_id) class="list-nav" @endif>
                            <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$area->area_id}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$area->title}}</a>
                        </li>
                        @endif
                        @if($key>=9 && ($now_area == $area->area_id))
                        <li class="list-nav" >
                            <a href="javascript:void(0)">{{$area->title}}</a>
                        </li>
                        @endif
                        @endforeach
                        @if(count($areas)>9)
                        <div class="float-r has-more position-relative" id="has-more">
                            <div class="icon-img">
                                <img src="{{asset('images/front/more.png')}}">
                            </div>
                            <div class="search-line to-more-infomation">
                                <ul class="clearfix boderbtm-dashed">
                                    <li class="fl fs14 c5 pl20 fwb">公司地点：</li>
                                    <li  @if(empty($now_area))class="list-nav"@endif>
                                       <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid=0&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">全国</a>
                                    </li>
                                    @foreach($areas as $key=>$area)
                                    @if($key < 9)
                                    <li @if($now_area == $area->area_id) class="list-nav" @endif>
                                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$area->area_id}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$area->title}}</a>
                                    </li>
                                    @endif
                                    @if($key>=9 && ($now_area == $area->area_id))
                                    <li class="list-nav" >
                                        <a href="javascript:void(0)">{{$area->title}}</a>
                                    </li>
                                    @endif
                                    @endforeach
                                </ul>
                                <ul class="clearfix">
                                    @foreach($areas as $key=>$area)
                                    @if($key >= 9)
                                    <li @if($now_area == $area->area_id) class="list-nav" @endif>
                                      <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$area->area_id}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$area->title}}</a>
                                    </li>
                                    @endif
                                    @endforeach
                                </ul>
                            </div>
                        </div>
                        @endif
                    </ul>
                </div>
                <div class="search-line bodertop" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">工作性质：</li>
                        <li @if($now_gzxz == 100) class="list-nav"@endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz=100&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">不限</a>
                        </li>
                        @foreach($gzxzs as $key=>$gzxz)
                        @if($key<100)
                        <li @if($now_gzxz == $key) class="list-nav" @endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$key}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">
                            {{$gzxzs[$key]}}
                        </a>
                        </li>
                        @endif
                        @endforeach
                    </ul>
                </div>
                <div class="search-line bodertop" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">工作经验：</li>
                        <li @if($now_gznx == 100) class="list-nav"@endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx=100&degree={{$now_degree}}&sort={{$now_sort}}">不限</a>
                        </li>
                        @foreach($gznxs as $key=>$gznx)
                        @if($key<100)
                        <li @if($now_gznx == $key) class="list-nav" @endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$key}}&degree={{$now_degree}}&sort={{$now_sort}}">
                            {{$gznxs[$key]}}
                          </a>
                        </li>
                        @endif
                        @endforeach
                    </ul>
                </div>
                <div class="search-line bodertop" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">学历要求：</li>
                        <li @if($now_degree == 100) class="list-nav"@endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree=100&sort={{$now_sort}}">不限</a>
                        </li>
                        @foreach($degrees as $key=>$degree)
                        @if($key<100)
                        <li @if($now_degree == $key) class="list-nav" @endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$key}}&sort={{$now_sort}}">
                             {{$degrees[$key]}}
                          </a>
                        </li>
                        @endif
                        @endforeach
                    </ul>
                </div>
                <div class="search-line bodertop" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">公司阶段：</li>
                        <li  @if(empty($now_develop))class="list-nav"@endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop=0&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">不限</a>
                        </li>
                        @foreach($develops as $key=>$develop)
                        <li @if($now_develop == $develop->id) class="list-nav" @endif>
                          <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$develop->id}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$develop->name}}</a>
                        </li>
                        @endforeach

                    </ul>
                </div>
                <div class="search-line bodertop" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">行业领域：</li>
                        <li  @if(empty($now_type))class="list-nav"@endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype=0&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">不限</a>
                        </li>
                        @foreach($types as $key=>$type)
                        @if($key < 7)
                        <li @if($now_type == $type->id) class="list-nav" @endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$type->id}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$type->name}}</a>
                        </li>
                        @endif
                        @if($key>=7 && ($now_type == $type->id))
                        <li class="list-nav" >
                            <a href="javascript:void(0)">{{$type->name}}</a>
                        </li>
                        @endif
                        @endforeach
                        @if(count($types)>7)
                        <div class="float-r has-more position-relative">
                            <div class="icon-img">
                                <img src="{{asset('images/front/more.png')}}">
                            </div>  
                            <div class="search-line to-more-infomation">
                                <ul class="clearfix boderbtm-dashed">
                                    <li class="fl fs14 c5 pl20 fwb">行业领域：</li>
                                    <li  @if(empty($now_type))class="list-nav"@endif>
                                    <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype=0&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">不限</a>
                                    </li>
                                    @foreach($types as $key=>$type)
                                    @if($key < 7)
                                    <li @if($now_type == $type->id) class="list-nav" @endif>
                                    <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$type->id}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$type->name}}</a>
                                    </li>
                                    @endif
                                    @if($key>=7 && ($now_type == $type->id))
                                    <li class="list-nav" >
                                        <a href="javascript:void(0)">{{$type->name}}</a>
                                    </li>
                                    @endif
                                    @endforeach
                                </ul>
                                <ul class="clearfix">
                                    @foreach($types as $key=>$type)
                                    @if($key >= 7)
                                    <li @if($now_type == $type->id) class="list-nav" @endif>
                                    <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$type->id}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{$now_sort}}">{{$type->name}}</a>
                                    </li>
                                    @endif
                                    @endforeach
                                </ul>
                            </div>
                        </div>
                        @endif
                    </ul>
                </div>
            </div>
            {{-- 排序条件 --}}
            <div class="employ-search lists-filter clearfix">
                <div class="search-line" id="search-line">
                    <ul class="clearfix">
                        <li class="fl fs14 c5 pl20 fwb">排序方法：</li>
                        <li @if($now_sort == 0) class="list-nav" @endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{0}}">默认</a>
                        </li>
                        <li @if($now_sort == 1) class="list-nav" @endif>
                        <a href="/company/list?typeid=1&kw={{$comkeyword}}&areaid={{$now_area}}&gzxz={{$now_gznx}}&develop={{$now_develop}}&comtype={{$now_type}}&gznx={{$now_gznx}}&degree={{$now_degree}}&sort={{1}}">最新</a>
                        </li>
                    </ul>
                </div>
            </div>
            {{-- 企业列表 --}}
            <div id="hot-jobs">
                <div id="hot-jobs-list" class="row ma">
                    @if(count($jobslist)>0)
                    @foreach( $jobslist as $list)
                    <div class="fs14 c3 pt30 bcgf" >
                        <div class="hot-jobs-infot">
                            <div class="col-xs-7 col-sm-7 col-md-7 pr0 mb10">
                                <div class="position_name">
                                    <h2 class="fl fs18">
                                        <a href="{{ url('/company/detail?typeid=1&jobsid='.$list->jobs_id) }}" target="_self" class="fl wordCut">{{ $list->title }}</a>
                                        <span>[{{$list->area_title}}]</span>
                                    </h2>
                                    <span class="time">{{ date('Y-m-d',strtotime($list->created_at))}}</span>
                                </div>
                                <div>
                                    <span class="salary fl">
                                        @if(($list->salary_lower == 0 || empty($list->salary_lower)) && ($list->salary_high == 0 || empty($list->salary_high)))
                                        面议
                                        @elseif(($list->salary_lower == 0 || empty($list->salary_lower)) && $list->salary_high > 0)
                                        {{$list->salary_high}}k以下
                                        @else
                                        {{ $list->salary_lower }}k-{{ $list->salary_high }}k
                                        @endif
                                    </span>
                                    <span>经验{{ $list->gznx_name }}</span> /
                                    <span>{{ $list->degree_name }}</span>
                                </div>
                            </div>
                            <div class="col-xs-5 col-sm-5 col-md-5 pd0 mb10">
                                <div class="fl">
                                    <div class="company_name wordCut" >
                                        <a href="{{ url('/company/detail?typeid=2&comid='.$list->company_id) }}" target="_self" title="{{$list->com_name}}">{{$list->com_name}}</a>
                                    </div>
                                    <div class="industry wordCut">
                                        @foreach( $comtypes[$list->company_id] as $key => $type)
                                        @if ($key == 1)
                                        <span>&bull;&nbsp;{{$type->name}}</span>@else<span>{{$type->name}}</span>
                                        @endif
                                        @endforeach
                                        @if(!empty($list->develop_name))/&nbsp;<span>{{$list->develop_name}}</span>@endif
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hot-jobs-infob">
                            <div class="col-xs-7 col-sm-7 col-md-7 pr0 fs14">
                                “{{ str_limit($list->com_signature, 56) }}”
                            </div>
                            <div class="col-xs-5 col-sm-5 col-md-5 pl0">
                                @foreach( $comtags[$list->company_id] as $tag)
                                <span>{{$tag->tags_name}}</span>
                                @endforeach
                            </div>
                        </div>
                    </div>
                    @endforeach
                    @endif
                </div>
                {{-- 加载更多 --}}
                <div id="jobs-hots-more" class="jobs-hots-more">
                    {{--@if(count($jobslist) < 15 && count($jobslist) > 0)
                    <button type="button" style=" background: #d9d9d9">加载完毕</button>
                    @elseif(count($jobslist) == 0)
                    <button type="button" style=" background: #d9d9d9">暂无此类数据</button>
                    @else --}}
                    <button type="button" id="getMoreJobs" class="getMoreJobs" >加载更多</button>
                    <input type="hidden" name="jobspages" value="{{$jobspages}}" />
                    {{--@endif--}}
                </div>
                <script>
                    $(function(){
                        $("#getMoreJobs").click(function(){
                            var p = $("input[name=jobspages]").val();
                            var areaid = "{{ Input::get('areaid')}}";
                            var develop = "{{ Input::get('develop')}}";
                            var comtype = "{{ Input::get('comtype')}}";
                            var gznx = "{{ Input::get('gznx')}}";
                            var degree = "{{ Input::get('degree')}}";
                            var sort = "{{ Input::get('sort')}}";
                            $.ajax({
                                type:'get',
                                cache:'false',
                                url:'/company/list?typeid=1',
                                data:"page="+p+"&kw="+'{{$comkeyword}}'+"&areaid="+areaid+"&develop="+develop+"&comtype="+comtype+"&gznx="+gznx+"&degree="+degree+"&sort="+sort,
                                dataType:'json',
                                success:function(data){
                                    if(data.status == 'success'){
                                        var res = data.data;
                                        var html = '';
                                        $.each(res,function(index,item){
                                            var job_url = "{{url('/company/detail?typeid=1&jobsid=')}}" + item.jobs_id;
                                            var com_url = "{{url('/company/detail?typeid=2&comid=')}}" + item.company_id;
                                            html +='<div class="fs14 c3 pt30 bcgf" >';
                                               html +='<div class="hot-jobs-infot">';
                                                 html +='<div class="col-xs-7 col-sm-7 col-md-7 pr0 mb10">';
                                                  html +='<div class="position_name">';
                                                   html +='<h2 class="fl fs18">';
                                                     html +='<a href="'+job_url+'" target="_self" class="fl wordCut">'+item.title+'</a>';
                                                     html +='<span>['+item.area_title+']</span>';
                                                   html +='</h2>';
                                                   html +='<span class="time">'+item.created_time+'</span>';
                                                  html +='</div>';
                                                  html +='<div>';
                                                  if((item.salary_lower == 0 || item.salary_lower.length<=0) && (item.salary_high == 0 || item.salary_high.length<=0)){
                                                    html +='<span class="salary fl">面议</span>';
                                                  }else if((item.salary_lower == 0 || item.salary_lower.length<=0) && item.salary_high > 0){
                                                	  html +='<span class="salary fl">'+item.salary_high+'k以下</span>';
                                                  }else{
                                                	  html +='<span class="salary fl">'+item.salary_lower+'k-'+item.salary_high+'k</span>';
                                                  }
                                                   html +='<span>经验'+item.gznx_name+'</span>&nbsp;/&nbsp;';
                                                   html +='<span>'+item.degree_name+'</span>';
                                                   html +='</div>';
                                                  html +='</div>';
                                                 html +='<div class="col-xs-5 col-sm-5 col-md-5 pd0 mb10">';
                                                  html +='<div class="fl">';
                                                   html +='<div class="company_name wordCut" >';
                                                      html +='<a href="'+com_url+'" target="_self" title="'+item.com_name+'">'+item.com_name+'</a>';
                                                   html +='</div>';
                                                   html +='<div class="industry wordCut">';
                                                     $.each(item.types,function(i,t){
                                                        if( i ==1 ){
                                                           html +='&nbsp;&bull;&nbsp;<span>'+t.name+'</span>';
                                                        }else{
                                                            html +='<span>'+t.name+'</span>';
                                                        }
                                                     });
                                                    html +='&nbsp;/&nbsp;<span>'+item.develop_name+'</span>';
                                                   html +='</div>';
                                                  html +='</div>';
                                                 html +='</div>';
                                                html +='</div>';
                                                html +='<div class="hot-jobs-infob">';
                                                  html +='<div class="col-xs-7 col-sm-7 col-md-7 pr0 fs14">';
                                                     html +='“'+item.com_signature+'”';
                                                  html +='</div>';
                                                  html +='<div class="col-xs-5 col-sm-5 col-md-5 pl0">';
                                                    $.each(item.tags,function(i,ta){
                                                      html +='<span>'+ta.tags_name+'</span>&nbsp;';
                                                    });
                                                  html+='</div>';
                                                html+='</div>';
                                            html+='</div>';
                                        });
                                        $("input[name=jobspages]").val(data.pages);
                                        $('#hot-jobs-list').append(html);
                                        if(data.length == 'falses'){
                                            $('.getMoreJobs').html('加载完毕');

                                        }
                                    }else{
                                        $('.getMoreJobs').html('加载完毕');
                                        return false;
                                    }
                                },
                                error:function(){
                                    alert('error');
                                }
                            });
                        })
                    })
                </script>
            </div>

        </div>
        {{-- 右侧内容 --}}
        <div id="com-details-wrap-right" class="fl">
            <div id="emergency-jobs">
                <h4 class="c0 pt15 pb15 pl20 ma0">紧急招聘</h4>
                <div id="emergency-jobs-lists">
                    @foreach($hotjobs as $key => $hjobs)
                    <div @if($key == (count($hotjobs)-1)) class="emergency-list bbn" @else  class="emergency-list" @endif>
                    <p class="fs14 c6 pl10">
                        <a href="{{ url('/company/detail?typeid=1&jobsid='.$hjobs->jobs_id) }}" target="_self" title="{{$hjobs->title}}">
                            {{ str_limit($hjobs->title, 8) }}
                        </a>
                        <em class="pl5 cp" title="{{$hjobs->areas->title}}">[{{ str_limit($hjobs->areas->title,6) }}]</em>
                        <span class="fs12 c9 fr pr10">{{ date('Y-m-d',strtotime($hjobs->created_at))}}</span>
                    </p>
                    <p class="fs14 cff pl10">
                        @if(($hjobs->salary_lower == 0 || empty($hjobs->salary_lower)) && ($hjobs->salary_high == 0 || empty($hjobs->salary_high)))
                        面议
                        @elseif(($hjobs->salary_lower == 0 || empty($hjobs->salary_lower)) && $hjobs->salary_high > 0)
                        {{$hjobs->salary_high}}k以下
                        @else
                        {{ $hjobs->salary_lower }}k-{{ $hjobs->salary_high }}k
                        @endif
                        <em class="c6 fr pr10">
                            <a href="{{ url('/company/detail?typeid=2&comid='.$hjobs->company_id) }}" target="_self" title="{{$hjobs->company->name}}">
                                {{ str_limit($hjobs->company->name,16) }}
                            </a>
                        </em>
                    </p>
                </div>
                @endforeach
                </div>
            </div>
            <div id="update-jobs">
                <h4 class="c0 pt15 pb15 pl20 ma0">最近更新</h4>
                <div id="update-jobs-lists">
                    @foreach($newjobs as $key => $njobs)
                    <div @if($key == (count($newjobs)-1)) class="emergency-list bbn" @else  class="emergency-list" @endif>
                    <p class="fs14 c6 pl10">
                        <a href="{{ url('/company/detail?typeid=1&jobsid='.$njobs->jobs_id) }}" target="_self" title="{{$njobs->title}}">
                            {{ str_limit($njobs->title, 8) }}
                        </a>
                        <em class="pl5 cp" title="{{$njobs->areas->title}}">[{{ str_limit($njobs->areas->title,6) }}]</em>
                        <span class="fs12 c9 fr pr10">{{ date('Y-m-d',strtotime($njobs->updated_at))}}</span>
                    </p>
                    <p class="fs14 cff pl10">
                        @if(($njobs->salary_lower == 0 || empty($njobs->salary_lower)) && ($njobs->salary_high == 0 || empty($njobs->salary_high)))
                        面议
                        @elseif(($njobs->salary_lower == 0 || empty($njobs->salary_lower)) && $njobs->salary_high > 0)
                        {{$njobs->salary_high}}k以下
                        @else
                        {{ $njobs->salary_lower }}k-{{ $njobs->salary_high }}k
                        @endif
                        <em class="c6 fr pr10">
                            <a href="{{ url('/company/detail?typeid=2&comid='.$njobs->company_id) }}" target="_self" title="{{$njobs->company->name}}">
                                {{ str_limit($njobs->company->name,16) }}
                            </a>
                        </em>
                    </p>
                </div>
                @endforeach
                </div>
            </div>
            <div id="com-ads">
               @foreach ($ads_img as $key => $adimg)
	           <img src="{{$adimg->attachment($adimg->id)->url}}">
    	       @endforeach
            </div>
        </div>
        <div class="clr"></div>
    </div>
</div>

@stop

@section('footer')
@parent
@stop

